IModel.AddError method

Namespace: NextDesign.Core

Description

Adds error information for this model and returns the added error information.

argument

Name Type Description
fields string Field names in which an error was detected (comma separated if there are multiple)

If null or an empty string is specified, error information will be added without an error detection field.
type string Error type
-"Error": Error
-"Warning": Warning
-"Information": Information
-"Summary": Summary
title string Title

All strings including null and empty string can be specified.
message string message

All strings including null and empty strings can be specified.

Return value

Exception

Name Exception Class Description
Incorrect argument ExtensionArgumentException When a string outside the range is specified for type

Annotation

The error information registered by specifying "Summary" in the argument "type" will not be the target of stacking the number of cases such as navigator.